#include "Logic.h"
#include <iostream>
using namespace std;

string test="add meeting from 8h30 to 9h30" ;
int main(){
	string command[10];
	command[0]="add meeting from 8h30 to 9h30";
	command[1]="add swim from 10/10/2013 to 9/9/2014";
	command[2]="edit 1 to abcxyz at 15/10/2012";
	command[3]="add meeting from 8h30 to 9h30";
	command[4]="undo";
	command[5]="redo";
	//command[4]="add test then meeting then eat then meet from 1/1/2011 to 16/10/2012";
	//command[1]="update 1 to finish";
	//command[1]="delete 1";
	//command[2]="add meeting from 8h30 10/10/2012 to 9h30 10/10/2015";
	//command[3]="update 1 to finish";
	//command[5]="delete 1";
	command[6]="search meeting";
	//command[2]="redo";
	LogicProcess *tmp=NULL;
	Logic *TaskNinja=new Logic();
	string cmd;
	int i=0;
	while(i<7){
		cmd=command[i];
		//getline(cin,command);
		TaskNinja->getCommand(cmd);
		TaskNinja->processCommand();
		//tmp=TaskNinja->getProcessor();
		i++;
	}
	delete TaskNinja;
	return 0;
}